package org.dtrd.modules.doctor.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.doctor.entity.po.DtrdRlStatisticsDoctorPatient;

import java.util.Date;

/**
 * <p>
 * 医生关联患者统计数据
 * </p>
 *
 * @author xiao
 * @since 2022-06-14
 */
@Data
@ApiModel(value = "医生关联患者统计数据详情")
public class StatisticsDoctorPatientDetail {

    private Integer dataId;

    @ApiModelProperty("统计日期")
    private Date recordDate;

    @ApiModelProperty("医生ID")
    private Integer doctorId;

    @ApiModelProperty("机构编码")
    private String orgCode;

    @ApiModelProperty("今日测量次数")
    private Integer measureNum;

    @ApiModelProperty("当天扫码患者数量")
    private Integer scanCount;

    @ApiModelProperty("未测量患者数")
    private Integer unMeasurePatientNum;

    @ApiModelProperty("重点关注患者数")
    private Integer concernNum;

    public StatisticsDoctorPatientDetail parseFromPo(DtrdRlStatisticsDoctorPatient po) {
        dataId = po.getDataId();
        recordDate = po.getRecordDate();
        doctorId = po.getDoctorId();
        orgCode = po.getOrgCode();
        measureNum = po.getMeasureNum();
        scanCount = po.getScanCount();
        unMeasurePatientNum = po.getUnMeasurePatientNum();
        concernNum = po.getConcernNum();
        return this;
    }
}
